package com.matt.sooncleaner.launcher

import com.matt.sooncleaner.arch.ArchFragment
import com.matt.sooncleaner.databinding.FragmentSplashBinding

class SplashFragment(val showNext: ()->Unit): ArchFragment<FragmentSplashBinding>() {
    override fun onInitView(binding: FragmentSplashBinding) {
        super.onInitView(binding)
        binding.progressView.setProgressEndListener {
            showNext.invoke()
        }
        binding.progressView.setProgress(1f, false)
        binding.progressView.startProgressAnimation()
    }
}